package model.request;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class SearchRequest {

    @NotNull(message = "Array cannot be null")
    @Size(min = 1, message = "Array must contain at least one element")
    private int[] array;

    @NotNull(message = "Target value cannot be null")
    private Integer target;
}